<?php 
@include_once('../adodb/adodb.inc.php');
@include_once('../adodb/tohtml.inc.php'); 
@include_once('adodb/adodb.inc.php');
@include_once('adodb/tohtml.inc.php'); 
$DBConnection="remote";
define('TABLEPREFIX','nk');
define('VALIDATE_ACTIVE',1); // 0 for inactive, 1 for active

if($DBConnection=="local")
{
	/*---------Local Connection Starts----------*/


	$user="root";

	$pass="";

	$host="localhost";

	$db_name="noobskool";	

	$adodbcon = &ADONewConnection('mysql'); 

	$adodbcon->debug=false;

	$adodbcon->Connect($host,$user,$pass,$db_name);    

	

	/*---------Local Connection Ends------------*/

	/*---------Local URL Info Starts----------*/

	$domainName  = "http://10.10.0.100/team2/noobskool";

	$site_url  = "http://10.10.0.100/team2/noobskool";

	$site_url_ssl  = "http://10.10.0.100/team2/noobskool";

	$site_name = "http://10.10.0.100/team2/noobskool";

	/*---------Local URL Info Ends------------*/
define('SITE_URL','http://10.10.0.100/team2/noobskool');
}

elseif($DBConnection=="remote")
{	

	/*---------Local Connection Starts----------*/

	 $user="noobskooldb";

	$pass="NKdb321";

	$host="noobskooldb.db.8919698.hostedresource.com";

	$db_name="noobskooldb";	

	$adodbcon = &ADONewConnection('mysql'); 
    
	$adodbcon->debug=false;

	$adodbcon->Connect($host,$user,$pass,$db_name);    
  
	

	/*---------Local Connection Ends------------*/

	/*---------Local URL Info Starts----------*/

	$domainName  = "http://www.noobskool.net/newsite/";

	$site_url  = "http://www.noobskool.net/newsite/";

	$site_url_ssl  = "http://www.noobskool.net/newsite/";

	$site_name = "http://www.noobskool.net/newsite/";
	define('SITE_URL','http://www.noobskool.net/newsite/');

	/*---------Local URL Info Ends------------*/
}

/* Payment Details Starts */
$PaypalID="ananda_1247833756_per@citytechcorp.com";
$PaymentMode="Test";
if($PaymentMode=='Test')	
	$PaypalUrl='https://www.sandbox.paypal.com/cgi-bin/webscr';	
elseif($PaymentMode=='Live')	
	$PaypalUrl='https://www.paypal.com/cgi-bin/webscr';	
/* Payment Details Ends */

$admin_email=$adodbcon->GetOne("SELECT admin_email FROM ".TABLEPREFIX."_admin WHERE admin_id='1'");
$items_per_page   = 30;
